<template name="nuevo">
    <h2>Crear usuario</h2>
    <form method="post" id="reg_form" action="{{action_crear_usuario}}" autocomplete="off">
        <table>
            <tr>
                <th colspan="2">Datos de login</th>
            </tr>
            <tr>
                <td>Tipo de usuario:</td>
                <td>
                    <select name="user[user_type]">
                        <option value="{{type_admin}}" {{selected_admin}}>Administrador</option>
                        <option value="{{type_security}}" {{selected_security}}>Seguridad</option>
                        <option value="{{type_master}}" {{selected_master}}>Master</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td><span class="requerido">*</span>Nombre de usuario:</td>
                <td><input type="text" name="user[username]" maxlength="40" value="{{['user']['username']}}" autocomplete="off" /></td>
            </tr>
            <tr>
                <td><span class="requerido">*</span>Email:</td>
                <td><input type="text" name="user[email]"  value="{{['user']['email']}}"  autocomplete="off" /></td>
            </tr>
            <tr>
                <td><span class="requerido">*</span>Repetir email:</td>
                <td><input type="text" name="user[email_repeat]"  value="{{['user']['email_repeat']}}"  autocomplete="off" /></td>
            </tr>
            <tr>
                <th colspan="2">Datos personales</th>
            </tr>
            <tr>
                <td><span class="requerido">*</span>Nombre:</td>
                <td><input type="text" name="user[fname]" value="{{['user']['fname']}}" /></td>
            </tr>
            <tr>
                <td><span class="requerido">*</span>Apellido:</td>
                <td><input type="text" name="user[lname]" value="{{['user']['lname']}}" /></td>
            </tr>
        </table>
        <br/>
         <input type="submit" value="Crear usuario" class="make_submit_button" />
         <br/>
        <br/>
        <span class="requerido">*</span><span>Campos requeridos</span>
    </form>
    <script type="text/javascript">
        $(function(){

        });
    </script>
</template>